package com.newtouch.xcd.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 本表用来存放用户的相关基本信息
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("5k_user")
@ApiModel(value="User对象", description="本表用来存放用户的相关基本信息")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "当前使用岗位")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "用户类别")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty(value = "1启用2停用3未激活")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "员工类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "用户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "前缀")
    @TableField("prefixion")
    private String prefixion;

    @ApiModelProperty(value = "编号")
    @TableField("number")
    private String number;

    @ApiModelProperty(value = "拥有客户数")
    @TableField("customer_num")
    private Integer customerNum;

    @ApiModelProperty(value = "用户姓名")
    @TableField("full_name")
    private String fullName;

    @ApiModelProperty(value = "头像")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "头像缩略图")
    @TableField("thumb_path")
    private String thumbPath;

    @ApiModelProperty(value = "用户密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "安全符")
    @TableField("salt")
    private String salt;

    @ApiModelProperty(value = "用户性别1男2女")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "用户邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "用户的电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty(value = "用户的联系地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "家乡")
    @TableField("hometown")
    private String hometown;

    @ApiModelProperty(value = "出生日期")
    @TableField("birthday")
    private Date birthday;

    @ApiModelProperty(value = "入职日期")
    @TableField("entry")
    private Date entry;

    @ApiModelProperty(value = "自我介绍")
    @TableField("introduce")
    private String introduce;

    @ApiModelProperty(value = "办公电话")
    @TableField("office_tel")
    private String officeTel;

    @ApiModelProperty(value = "QQ/MSN")
    @TableField("qq")
    private String qq;

    @ApiModelProperty(value = "用户自定义导航菜单")
    @TableField("navigation")
    private String navigation;

    @ApiModelProperty(value = "自定义快捷添加菜单")
    @TableField("simple_menu")
    private String simpleMenu;

    @ApiModelProperty(value = "个人面板")
    @TableField("dashboard")
    private String dashboard;

    @ApiModelProperty(value = "注册时的ip")
    @TableField("reg_ip")
    private String regIp;

    @ApiModelProperty(value = "用户的注册时间")
    @TableField("reg_time")
    private Integer regTime;

    @ApiModelProperty(value = "用户最后一次登录的时间")
    @TableField("last_login_time")
    private Integer lastLoginTime;

    @ApiModelProperty(value = "用户申请找回密码的时间")
    @TableField("lostpw_time")
    private Integer lostpwTime;

    @TableField("weixinid")
    private String weixinid;

    @ApiModelProperty(value = "手机端客户，商机等最后阅读时间")
    @TableField("last_read_time")
    private String lastReadTime;

    @ApiModelProperty(value = "会话机制")
    @TableField("token")
    private String token;

    @ApiModelProperty(value = "会话时间")
    @TableField("token_time")
    private Integer tokenTime;

    @ApiModelProperty(value = "推送token")
    @TableField("developer_token")
    private String developerToken;

    @ApiModelProperty(value = "合同审核是否生成应收款")
    @TableField("is_receivables")
    private Integer isReceivables;


}
